package com.sky.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class TestTask {

    /**
     * 每秒执行一次
     * cron: * * * * * ?
     */
    // @Scheduled(cron = "* * * * * ?")
    public void test(){
        log.info("hello spring task");
    }
}
